using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;

namespace Blog.Repository;


/// <summary>
/// 用户
///</summary>
[SugarTable("ad_user")]
public class UserEntity : EntityFull
{

    /// <summary>
    /// 主键Id
    ///</summary>
    [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
    public long Id { get; set; }
    
    /// <summary>
    /// 账号
    ///</summary>
    [SugarColumn(ColumnName = "UserName")]
    public string? UserName { get; set; }
    
    /// <summary>
    /// 密码
    ///</summary>
    [SugarColumn(ColumnName = "Password")]
    public string? Password { get; set; }
    
    /// <summary>
    /// 昵称
    ///</summary>
    [SugarColumn(ColumnName = "NickName")]
    public string? NickName { get; set; }
    
    /// <summary>
    /// 头像
    ///</summary>
    [SugarColumn(ColumnName = "Avatar")]
    public string? Avatar { get; set; }
    
    /// <summary>
    /// 状态
    ///</summary>
    [SugarColumn(ColumnName = "Status")]
    public int Status { get; set; }
    
    /// <summary>
    /// 备注
    ///</summary>
    [SugarColumn(ColumnName = "Remark")]
    public string? Remark { get; set; }
    
    /// <summary>
    /// 租户Id
    ///</summary>
    [SugarColumn(ColumnName = "TenantId")]
    public long? TenantId { get; set; }
    
    /// <summary>
    /// 版本
    ///</summary>
    [SugarColumn(ColumnName = "Version")]
    public long Version { get; set; }
    }
